-- CALC_BLOOD_WOLF_BOX_BONUS2

-- 血狼副本宝箱奖励
return function(user, bonusArg)
    local rand1 = DungeonM.getRandSeed("CALC_BLOOD_WOLF_BOX_BONUS");
    local rand2 = DungeonM.getRandSeed("CALC_BLOOD_WOLF_BOX_BONUS");
    local index;

    local ret = {};

    if BuildingBonusM.getFieldStat("blood_wolf_box2") < 1 then
        -- 首次10000金币
        ret = {2, "money", 10000};
    else
        -- 1阶改造材料×2、2阶改造材料×1
        local arr1 = {10400, 10401, 10402, 10403};
        index = rand1 % #arr1 + 1;
        table.insert(ret, {1, arr1[index], 2});

        local arr2 = {10404, 10405, 10406, 10407};
        index = rand2 % #arr2 + 1;
        table.insert(ret, {1, arr2[index], 1});
    end
    return ret;
end